package com.powernode.feign.sentinel;

import com.powernode.constant.BusinessEnum;
import com.powernode.domain.Sku;
import com.powernode.feign.CartProdFeign;
import com.powernode.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 *
 */
@Component
@Slf4j
public class CartProdFeignSentinel implements CartProdFeign {
    @Override
    public Result<List<Sku>> getSkuListBySkuIds(List<Long> skuIds) {
        log.error("远程调用失败：根据商品skuId集合查询商品sku对象集合");
        return Result.fail(BusinessEnum.OPERATION_FAIL);
    }
}
